<template>
<div>
<h1>父组件</h1>
<ChildCom>
<template #default=" { scope }" >
<p>姓名:{{ scope.name }}</p>
<p>性别:{{ scope. gender }}</p>
</template>
</ChildCom>
</div>
</template>
<script>
import ChildCom from "./eomponents/ChildCom. vue" ;
export default{
    components:{
        ChildCom,
    },
};
</script>